 <html>
	<head>
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                <title>hello</title>
		
  		  <style type="text/css">
 		       body{      
     			   background-image: url('photo/login.JPG');      
  			   background-size:cover;    
    			 } 
		    </style>
        </head>

	<body scroll = no >
            <style>
		.test {
  		 font-size: 20px;
		 text-align: center;
   		 color: #FFFFFF;
		  font-family : 微软雅黑,宋体, 'New York';
		}
		</style >
		
		<br/><br/><br/><br/><br/><br/><br/><br/>

		
		<table    align="center">
		<form action="enter.jsp" method="post" onsubmit="return checkForm(this);">
		<tr>
	        <td><h3><div class="test">用户名:</div></td>
		<td><h4><input type="text" name="username"></td>
		</tr>
		<tr>
		<td><h3><div class="test"> 密码:</div></td>
		<td><h4><input type="password" name="password"></td>
		</tr>
		<tr>
		<td style="padding-left:50px"><input type="submit" value="登录" name="submit"size="7"></td>
		<td style="padding-left:50px"><input type="reset" value="重置" name="reset" size="7"></td>
		</tr>
		</form>
		<tr>
		<td style="padding-left:50px">
		<form action="GetPassWord.jsp" method="post">
			<input type="submit" value="找回密码" name="getpass">
		</form>
		</td>
		<td  style="padding-left:50px">
			<form action="register.jsp" method="post">
		        <input type="submit" value="注册" name="regist">
			</form>
		</td>
		</tr>
		</table>
</body></html>
<script language="JavaScript">
function checkFrom(form){
	if(form.username.value==""){
	alert("用户名不能为空");
	form.username.focus();
	return false}
	if(form.password.value=""){
		alert("密码不能为空");
		form.password.focus();
		return false;
	}
	return true;
}
</script>

